| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/plugins/file-manager-advanced/application/assets/dist/ |
Upload File : |
/*! For license information please see 573.900ca190.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunkafm_react_admin=self.webpackChunkafm_react_admin||[]).push([[573],{2573(e,t,n){n.r(t),n.d(t,{default:()=>h});var o=n(8450),i=(n(5464),n(8722)),r=n(1962);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,o,i,r){var l=o&&o.prototype instanceof s?o:s,d=Object.create(l.prototype);return u(d,"_invoke",function(n,o,i){var r,s,l,d=0,c=i||[],u=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,s=0,l=e,f.n=n,a}};function p(n,o){for(s=n,l=o,t=0;!u&&d&&!i&&t<c.length;t++){var i,r=c[t],p=f.p,g=r[2];n>3?(i=g===o)&&(l=r[(s=r[4])?5:(s=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(s=0,f.v=o,f.n=r[1]):p<g&&(i=n<3||r[0]>o||o>g)&&(r[4]=n,r[5]=o,f.n=g,s=0))}if(i||n>1)return a;throw u=!0,o}return function(i,c,g){if(d>1)throw TypeError("Generator is already running");for(u&&1===c&&p(c,g),s=c,l=g;(t=s<2?e:l)||!u;){r||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(d=2,r){if(s||(i="next"),t=r[i]){if(!(t=t.call(r,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=r.return)&&t.call(r),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);r=e}else if((t=(u=f.n<0)?l:n.call(o,f))!==a)break}catch(t){r=e,s=1,l=t}finally{d=1}}return{value:t,done:u}}}(n,i,r),!0),d}var a={};function s(){}function l(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(u(t={},o,function(){return this}),t),p=d.prototype=s.prototype=Object.create(f);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=d,u(p,"constructor",d),u(d,"constructor",l),l.displayName="GeneratorFunction",u(d,i,"GeneratorFunction"),u(p),u(p,i,"Generator"),u(p,o,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:r,m:g}})()}function u(e,t,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}u=function(e,t,n,o){function r(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},u(e,t,n,o)}function f(e,t,n,o,i,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,i)}function p(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function a(e){f(r,o,i,a,s,"next",e)}function s(e){f(r,o,i,a,s,"throw",e)}a(void 0)})}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,s=[],l=!0,d=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){d=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function h(){var e,t,n,a,s,d,u,f,x=(null===(e=window.afmReact)||void 0===e?void 0:e.hasPro)||!1,h=(null===(t=window.afmReact)||void 0===t?void 0:t.currentPlan)||"free",m=g((0,o.useState)(!1),2),v=m[0],b=m[1],y=g((0,o.useState)(!0),2),j=y[0],w=y[1],k=g((0,o.useState)(!0),2),S=k[0],_=k[1],C=g((0,o.useState)(!0),2),T=C[0],N=C[1],R=g((0,o.useState)({roles:(null===(n=window.afmReact)||void 0===n?void 0:n.roles)||{},storage:null,logs:[],integrations:{},pluginSettings:null}),2),z=R[0],I=R[1],O=g((0,o.useState)(null),2),A=O[0],D=O[1],W=g((0,o.useState)(null),2),P=W[0],B=W[1],M=g((0,o.useState)({x:0,y:0}),2),E=M[0],F=M[1],L=g((0,o.useState)(null),2),G=L[0],U=L[1],q=function(){var e=p(c().m(function e(t){var n,o,i;return c().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=String(t||"")){e.n=1;break}return e.a(2,!1);case 1:if(e.p=1,!navigator.clipboard||!window.isSecureContext){e.n=3;break}return e.n=2,navigator.clipboard.writeText(n);case 2:return e.a(2,!0);case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return e.p=5,(o=document.createElement("textarea")).value=n,o.setAttribute("readonly",""),o.style.position="fixed",o.style.left="-9999px",o.style.opacity="0",document.body.appendChild(o),o.select(),i=document.execCommand("copy"),document.body.removeChild(o),e.a(2,i);case 6:return e.p=6,e.v,e.a(2,!1)}},e,null,[[5,6],[1,4]])}));return function(t){return e.apply(this,arguments)}}(),V=function(){var e,t;return{root:(0,i.lA)(),nonce:(null===(e=window.wpApiSettings)||void 0===e?void 0:e.nonce)||(null===(t=window.afmReact)||void 0===t?void 0:t.nonce)||""}};(0,o.useEffect)(function(){var e=V(),t=e.root,n=e.nonce;if(t&&n){var o="afm_storage_usage_v3",r=!sessionStorage.getItem(o),a=(0,i._H)("file-manager-advanced/v1/storage-usage",r?{refresh:"1"}:{});b(!0),fetch(a,{method:"GET",credentials:"same-origin",headers:{"X-WP-Nonce":n}}).then(function(e){return e.ok?e.json():Promise.reject({status:e.status})}).then(function(e){e&&e.breakdown?(sessionStorage.setItem(o,"1"),I(function(t){return l(l({},t),{},{storage:e})})):I(function(e){return l(l({},e),{},{storage:null})}),b(!1)}).catch(function(){I(function(e){return l(l({},e),{},{storage:null})}),b(!1)})}else b(!1)},[]),(0,o.useEffect)(function(){var e=V(),t=e.root,n=e.nonce;t&&n?setTimeout(function(){fetch("".concat(t,"file-manager-advanced/v1/activity-logs"),{credentials:"same-origin",headers:{"X-WP-Nonce":n},method:"GET"}).then(function(e){return e.ok?e.json():{logs:[]}}).then(function(e){var t,n=(null==e?void 0:e.logs)||(null==e||null===(t=e.data)||void 0===t?void 0:t.logs)||[];I(function(e){return l(l({},e),{},{logs:n})}),w(!1)}).catch(function(){I(function(e){return l(l({},e),{},{logs:[]})}),w(!1)})},100):w(!1)},[]),(0,o.useEffect)(function(){var e=V(),t=e.root,n=e.nonce;t&&n?setTimeout(function(){fetch("".concat(t,"file-manager-advanced/v1/integrations-status"),{credentials:"same-origin",headers:{"X-WP-Nonce":n},method:"GET"}).then(function(e){return e.ok?e.json():{connected:{}}}).then(function(e){var t,n=(null==e?void 0:e.connected)||(null==e||null===(t=e.data)||void 0===t?void 0:t.connected)||{};I(function(e){return l(l({},e),{},{integrations:n})}),_(!1)}).catch(function(){I(function(e){return l(l({},e),{},{integrations:{}})}),_(!1)})},150):_(!1)},[]),(0,o.useEffect)(function(){var e=V(),t=e.root,n=e.nonce;t&&n?setTimeout(function(){fetch("".concat(t,"file-manager-advanced/v1/plugin-settings"),{credentials:"same-origin",headers:{"X-WP-Nonce":n},method:"GET"}).then(function(e){return e.ok?e.json():null}).then(function(e){I(function(t){return l(l({},t),{},{pluginSettings:e})}),N(!1)}).catch(function(){I(function(e){return l(l({},e),{},{pluginSettings:null})}),N(!1)})},200):N(!1)},[]);var X,H,Q,Y=function(e){if(!e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB"][t]},$=z.storage,K=[],J={},Z=0,ee=[];if($&&$.breakdown){var te,ne,oe,ie,re,ae,se,le,de,ce,ue,fe,pe,ge,xe,he,me,ve,be,ye,je,we,ke,Se,_e,Ce,Te,Ne,Re,ze=$.breakdown,Ie=Math.max(1,((null===(te=ze.video)||void 0===te?void 0:te.bytes)||0)+((null===(ne=ze.images)||void 0===ne?void 0:ne.bytes)||0)+((null===(oe=ze.documents)||void 0===oe?void 0:oe.bytes)||0)+((null===(ie=ze.code)||void 0===ie?void 0:ie.bytes)||0)+((null===(re=ze.other)||void 0===re?void 0:re.bytes)||0)),Oe=function(e){return e/Ie*100},Ae=Oe((null===(ae=ze.video)||void 0===ae?void 0:ae.bytes)||0),De=Ae+Oe((null===(se=ze.images)||void 0===se?void 0:se.bytes)||0),We=De+Oe((null===(le=ze.documents)||void 0===le?void 0:le.bytes)||0),Pe=We+Oe((null===(de=ze.code)||void 0===de?void 0:de.bytes)||0);if(J={background:"conic-gradient(#e87a5a 0 ".concat(Ae,"%, #60a5fa ").concat(Ae,"% ").concat(De,"%, #fbbf24 ").concat(De,"% ").concat(We,"%, #34d399 ").concat(We,"% ").concat(Pe,"%, #cbd5e1 ").concat(Pe,"% 100%)")},K=[{color:"#e87a5a",label:"Video",bytes:null===(ce=ze.video)||void 0===ce?void 0:ce.bytes,files:null===(ue=ze.video)||void 0===ue?void 0:ue.files},{color:"#60a5fa",label:"Images",bytes:null===(fe=ze.images)||void 0===fe?void 0:fe.bytes,files:null===(pe=ze.images)||void 0===pe?void 0:pe.files},{color:"#fbbf24",label:"Documents",bytes:null===(ge=ze.documents)||void 0===ge?void 0:ge.bytes,files:null===(xe=ze.documents)||void 0===xe?void 0:xe.files},{color:"#34d399",label:"Code",bytes:null===(he=ze.code)||void 0===he?void 0:he.bytes,files:null===(me=ze.code)||void 0===me?void 0:me.files},{color:"#cbd5e1",label:"Other",bytes:null===(ve=ze.other)||void 0===ve?void 0:ve.bytes,files:null===(be=ze.other)||void 0===be?void 0:be.files}],ee=[{color:"#e87a5a",label:"Video",bytes:(null===(ye=ze.video)||void 0===ye?void 0:ye.bytes)||0,files:(null===(je=ze.video)||void 0===je?void 0:je.files)||0,start:0,end:Ae},{color:"#60a5fa",label:"Images",bytes:(null===(we=ze.images)||void 0===we?void 0:we.bytes)||0,files:(null===(ke=ze.images)||void 0===ke?void 0:ke.files)||0,start:Ae,end:De},{color:"#fbbf24",label:"Documents",bytes:(null===(Se=ze.documents)||void 0===Se?void 0:Se.bytes)||0,files:(null===(_e=ze.documents)||void 0===_e?void 0:_e.files)||0,start:De,end:We},{color:"#34d399",label:"Code",bytes:(null===(Ce=ze.code)||void 0===Ce?void 0:Ce.bytes)||0,files:(null===(Te=ze.code)||void 0===Te?void 0:Te.files)||0,start:We,end:Pe},{color:"#cbd5e1",label:"Other",bytes:(null===(Ne=ze.other)||void 0===Ne?void 0:Ne.bytes)||0,files:(null===(Re=ze.other)||void 0===Re?void 0:Re.files)||0,start:Pe,end:100}],$.fs&&$.fs.total>0){var Be,Me,Ee=(null===(Be=$.total)||void 0===Be?void 0:Be.bytes)||Ie;Z=Ee>0?Math.round(((null===(Me=ze.other)||void 0===Me?void 0:Me.bytes)||0)/Ee*100):0}else Z=Math.max(0,Math.round(100-Pe))}return(0,r.jsxs)("div",{className:"afm-dashboard",children:[(0,r.jsxs)("div",{className:"afm-card",children:[(0,r.jsx)("style",{children:"\n @keyframes afm-skeleton-shimmer {\n 0% { background-position: -200% 0; }\n 100% { background-position: 200% 0; }\n }\n .afm-skeleton {\n background-color: #e2e8f0;\n background-image: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);\n background-size: 200% 100%;\n animation: afm-skeleton-shimmer 1.4s linear infinite;\n }\n "}),(0,r.jsxs)("div",{className:"afm-card__header",children:["Storage Usage",!v&&(null==$||null===(a=$.fs)||void 0===a?void 0:a.total)&&(0,r.jsxs)("span",{style:{fontSize:"14px",color:"#3F6972",fontWeight:600},children:["Disk Capacity: ",Y($.fs.total)]})]}),(0,r.jsx)("div",{className:"afm-card__body afm-storage-flex",children:v?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{style:{width:"100%"},children:[(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"14px",width:"120px",marginBottom:"10px",backgroundColor:"#e2e8f0",borderRadius:"4px"}}),(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"36px",width:"180px",marginBottom:"20px",backgroundColor:"#e2e8f0",borderRadius:"4px"}}),(0,r.jsx)("div",{className:"afm-donut-legend",style:{marginTop:"20px"},children:[1,2,3,4,5].map(function(e){return(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"12px auto auto",alignItems:"center",gap:"8px",marginBottom:"8px"},children:[(0,r.jsx)("div",{className:"afm-skeleton",style:{width:"12px",height:"12px",borderRadius:"50%",backgroundColor:"#e2e8f0"}}),(0,r.jsx)("div",{className:"afm-skeleton",style:{width:"60px",height:"14px",backgroundColor:"#e2e8f0",borderRadius:"4px"}}),(0,r.jsx)("div",{className:"afm-skeleton",style:{width:"80px",height:"14px",backgroundColor:"#e2e8f0",borderRadius:"4px"}})]},e)})})]}),(0,r.jsx)("div",{style:{width:"240px",height:"240px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)("div",{className:"afm-skeleton",style:{width:"220px",height:"220px",borderRadius:"50%",border:"25px solid #e2e8f0",boxSizing:"border-box"}})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{fontSize:"12px",color:"#3F6972",fontWeight:600},children:"Total Local Bytes / Files"}),(0,r.jsxs)("div",{style:{fontWeight:800,fontSize:"28px",color:"#3F6972",marginTop:"10px"},children:[$?Y((null===(s=$.total)||void 0===s?void 0:s.bytes)||0):"—"," ",$&&(0,r.jsxs)("span",{style:{color:"#94a3b8",fontSize:"18px",fontWeight:600},children:["/ ",null!==(d=$.total)&&void 0!==d&&d.files?$.total.files.toLocaleString():"0"]})]}),(0,r.jsx)("div",{className:"afm-donut-legend",style:{marginTop:"20px"},children:K.map(function(e,t){return[(0,r.jsx)("span",{className:"afm-dot",style:{background:e.color}},"dot-".concat(t)),(0,r.jsx)("span",{children:e.label},"label-".concat(t)),(0,r.jsx)("span",{children:$?Y(e.bytes||0)+" / "+(e.files||0):"—"},"value-".concat(t))]})})]}),(0,r.jsxs)("div",{className:"afm-donut-container",style:{position:"relative",width:"240px",height:"240px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},onMouseMove:function(e){if($&&$.breakdown&&0!==ee.length){var t=e.currentTarget.getBoundingClientRect(),n=t.left+t.width/2,o=t.top+t.height/2,i=e.clientX-n,r=e.clientY-o,a=Math.sqrt(i*i+r*r),s=t.width/2;if(a<.32*s||a>s)B(null);else{var l=Math.atan2(r,i)*(180/Math.PI),d=(l=(l+90+360)%360)/360*100,c=ee.find(function(e){return(0!==e.start||0!==e.end)&&(e.start>e.end?d>=e.start||d<e.end:d>=e.start&&d<e.end)});c&&(c.bytes>0||c.files>0)?(B(c),F({x:e.clientX,y:e.clientY})):B(null)}}},onMouseLeave:function(){B(null)},children:[(0,r.jsx)("div",{className:"afm-donut",style:l(l({},J),{},{width:"220px",height:"220px",pointerEvents:"none"})}),(0,r.jsxs)("div",{style:{position:"absolute",textAlign:"center",fontWeight:700,color:"#334155",pointerEvents:"none",zIndex:1},children:[Z,"%",(0,r.jsx)("div",{style:{fontWeight:600,color:"#64748b"},children:"Other"})]}),P&&(0,r.jsxs)("div",{style:{position:"fixed",left:"".concat(E.x+10,"px"),top:"".concat(E.y-10,"px"),background:"#1e293b",color:"#fff",padding:"12px 16px",borderRadius:"8px",fontSize:"13px",fontWeight:500,boxShadow:"0 4px 12px rgba(0,0,0,0.3)",zIndex:1e4,pointerEvents:"none",whiteSpace:"nowrap",transform:"translateY(-100%)"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"6px"},children:[(0,r.jsx)("div",{style:{width:"12px",height:"12px",borderRadius:"50%",background:P.color}}),(0,r.jsx)("div",{style:{fontWeight:600,fontSize:"14px"},children:P.label})]}),(0,r.jsxs)("div",{style:{fontSize:"12px",color:"#cbd5e1",marginTop:"4px"},children:[(0,r.jsxs)("div",{children:["Size: ",Y(P.bytes)]}),(0,r.jsxs)("div",{children:["Files: ",P.files.toLocaleString()]}),(0,r.jsxs)("div",{style:{marginTop:"4px",color:"#94a3b8"},children:[(P.end-P.start).toFixed(1),"% of storage"]})]})]})]})]})})]}),(0,r.jsxs)("div",{className:"afm-card afm-plugin-settings",children:[(0,r.jsx)("div",{className:"afm-card__header",children:"Plugin Settings & Quick Access"}),(0,r.jsx)("div",{className:"afm-card__body",children:T?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"16px",width:"180px",marginBottom:"14px",backgroundColor:"#e2e8f0",borderRadius:"4px"}}),(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"14px",width:"100%",marginBottom:"10px",backgroundColor:"#e2e8f0",borderRadius:"4px"}}),(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"14px",width:"90%",marginBottom:"20px",backgroundColor:"#e2e8f0",borderRadius:"4px"}}),(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"10px"},children:[1,2,3,4].map(function(e){return(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"42px",backgroundColor:"#e2e8f0",borderRadius:"8px"}},e)})})]}):(Q=z.pluginSettings||{},(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,r.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#3F6972",marginBottom:"12px"},children:"Plugin Information"}),(0,r.jsxs)("div",{className:"afm-plugin-info-grid",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{style:{color:"#64748b",display:"block",marginBottom:"8px"},children:"Version:"}),(0,r.jsxs)("span",{style:{display:"inline-flex",flexWrap:"wrap",gap:"8px",alignItems:"center"},children:[(0,r.jsxs)("span",{style:{background:"#f5f7f9",color:"#64748b",padding:"4px 12px",borderRadius:"30px",fontSize:"11px",fontWeight:600,border:"1px solid #e2e8f0",display:"inline-flex",alignItems:"center",gap:"4px"},children:[(0,r.jsx)("span",{style:{opacity:.7},children:"FREE"}),(0,r.jsxs)("span",{children:["v",(null===(X=window.afmReact)||void 0===X?void 0:X.version)||Q.version||"—"]})]}),null!==(H=window.afmReact)&&void 0!==H&&H.proVersion?(0,r.jsxs)("span",{style:{background:"linear-gradient(135deg, #3F6972 0%, #2d4f57 100%)",color:"#fff",padding:"4px 12px",borderRadius:"30px",fontSize:"11px",fontWeight:600,boxShadow:"0 2px 4px rgba(63, 105, 114, 0.2)",display:"inline-flex",alignItems:"center",gap:"4px"},children:[(0,r.jsx)("span",{style:{color:"#ffd700"},children:"★"}),(0,r.jsxs)("span",{children:["PRO v",window.afmReact.proVersion]})]}):null]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{style:{color:"#64748b"},children:"Theme:"})," ",(0,r.jsx)("span",{style:{fontWeight:500,color:"#0f172a"},children:Q.theme_display||"—"})]}),(0,r.jsxs)("div",{style:{gridColumn:"1 / span 2"},children:[(0,r.jsx)("span",{style:{color:"#64748b"},children:"Root Directory:"}),(0,r.jsx)("div",{style:{fontWeight:500,color:"#0f172a",marginTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px"},children:Q.root_directory||"—"})]}),(0,r.jsxs)("div",{style:{gridColumn:"1 / span 2"},children:[(0,r.jsx)("span",{style:{color:"#64748b"},children:"Who Can Access:"}),(0,r.jsx)("div",{style:{fontWeight:500,color:"#0f172a",marginTop:"4px"},children:Q.allowed_roles_display&&Q.allowed_roles_display.length?Q.allowed_roles_display.join(", "):"Administrator"})]})]})]}),(0,r.jsxs)("div",{style:{paddingTop:"16px",borderTop:"1px solid #eef2f6"},children:[(0,r.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#3F6972",marginBottom:"12px"},children:"Quick Actions"}),(0,r.jsxs)("div",{className:"afm-quick-actions-grid",children:[(0,r.jsx)("a",{href:"#/filemanager",onClick:function(e){e.preventDefault(),window.location.hash="#/filemanager"},style:{display:"block",padding:"10px 14px",background:"#3f6972",borderRadius:"8px",textDecoration:"none",textAlign:"center",border:"1px solid #3f6972",cursor:"pointer",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(63, 105, 114, 0.2)"},onMouseEnter:function(e){e.currentTarget.style.background="#2d4f57",e.currentTarget.style.borderColor="#2d4f57",e.currentTarget.style.boxShadow="0 2px 6px rgba(63, 105, 114, 0.3)"},onMouseLeave:function(e){e.currentTarget.style.background="#3f6972",e.currentTarget.style.borderColor="#3f6972",e.currentTarget.style.boxShadow="0 1px 3px rgba(63, 105, 114, 0.2)"},children:(0,r.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#ffffff"},children:"Open File Manager"})}),(0,r.jsx)("a",{href:"#/settings/general-settings",onClick:function(e){e.preventDefault(),sessionStorage.setItem("afm-settings-hash-just-set","true"),sessionStorage.setItem("afm-settings-subtab","general-settings"),window.location.hash="#/settings/general-settings",setTimeout(function(){sessionStorage.removeItem("afm-settings-hash-just-set")},2e3)},style:{display:"block",padding:"10px 14px",background:"#3f6972",borderRadius:"8px",textDecoration:"none",textAlign:"center",border:"1px solid #3f6972",cursor:"pointer",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(63, 105, 114, 0.2)"},onMouseEnter:function(e){e.currentTarget.style.background="#2d4f57",e.currentTarget.style.borderColor="#2d4f57",e.currentTarget.style.boxShadow="0 2px 6px rgba(63, 105, 114, 0.3)"},onMouseLeave:function(e){e.currentTarget.style.background="#3f6972",e.currentTarget.style.borderColor="#3f6972",e.currentTarget.style.boxShadow="0 1px 3px rgba(63, 105, 114, 0.2)"},children:(0,r.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#ffffff"},children:"Configure Settings"})}),(0,r.jsx)("a",{href:window.afmReact&&window.afmReact.docsUrl||"https://advancedfilemanager.com/documentation/",target:"_blank",rel:"noopener noreferrer",style:{display:"block",padding:"10px 14px",background:"#3f6972",borderRadius:"8px",textDecoration:"none",textAlign:"center",border:"1px solid #3f6972",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(63, 105, 114, 0.2)"},onMouseEnter:function(e){e.currentTarget.style.background="#2d4f57",e.currentTarget.style.borderColor="#2d4f57",e.currentTarget.style.boxShadow="0 2px 6px rgba(63, 105, 114, 0.3)"},onMouseLeave:function(e){e.currentTarget.style.background="#3f6972",e.currentTarget.style.borderColor="#3f6972",e.currentTarget.style.boxShadow="0 1px 3px rgba(63, 105, 114, 0.2)"},children:(0,r.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#ffffff"},children:"Documentation"})}),(0,r.jsx)("a",{href:window.afmReact&&window.afmReact.supportUrl||"https://advancedfilemanager.com/contact/",target:"_blank",rel:"noopener noreferrer",style:{display:"block",padding:"10px 14px",background:"#3f6972",borderRadius:"8px",textDecoration:"none",textAlign:"center",border:"1px solid #3f6972",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(63, 105, 114, 0.2)"},onMouseEnter:function(e){e.currentTarget.style.background="#2d4f57",e.currentTarget.style.borderColor="#2d4f57",e.currentTarget.style.boxShadow="0 2px 6px rgba(63, 105, 114, 0.3)"},onMouseLeave:function(e){e.currentTarget.style.background="#3f6972",e.currentTarget.style.borderColor="#3f6972",e.currentTarget.style.boxShadow="0 1px 3px rgba(63, 105, 114, 0.2)"},children:(0,r.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#ffffff"},children:"Get Support"})})]})]})]}))})]}),(0,r.jsxs)("div",{className:"afm-card afm-activity",style:{position:"relative"},children:[(0,r.jsx)("div",{className:"afm-card__header",children:"Activity Logs"}),(0,r.jsxs)("div",{className:"afm-card__body",style:{position:"relative"},children:[j?(0,r.jsx)("div",{className:"afm-card-content",children:[1,2,3].map(function(e){return(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"60px 1fr 1fr 1fr",gap:"10px",marginBottom:"10px"},children:[(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"14px",backgroundColor:"#e2e8f0",borderRadius:"4px"}}),(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"14px",backgroundColor:"#e2e8f0",borderRadius:"4px"}}),(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"14px",backgroundColor:"#e2e8f0",borderRadius:"4px"}}),(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"14px",backgroundColor:"#e2e8f0",borderRadius:"4px"}})]},e)})}):(0,r.jsx)("div",{className:"afm-table-wrapper afm-card-content",style:{overflowX:"auto"},children:(0,r.jsxs)("table",{className:"afm-activity-table",style:{width:"100%",borderCollapse:"collapse"},children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:["ID","User","Date & Time","Event","File Path","Type","IP Address","Actions"].map(function(e,t){return(0,r.jsx)("th",{style:{textAlign:"left",padding:"8px",borderBottom:"1px solid #eef2f6",color:"#3F6972",fontWeight:600,fontSize:"12px"},children:e},t)})})}),(0,r.jsx)("tbody",{children:function(e){var t,n=(null===(e=window.afmReact)||void 0===e?void 0:e.hasPro)||!1,o=z.logs||[],i=o.length>0?o.slice(0,3):[],a=!n&&0===i.length,s=a?[{id:"dummy-1",user:"admin",email:"admin@example.com",time:(t=Date.now())-36e5,event:"File Uploaded",file_path:"/wp-content/uploads/2024/11/sample-image.jpg",type:"Image",ip:"192.168.1.100",message:"File uploaded successfully: sample-image.jpg"},{id:"dummy-2",user:"editor",email:"editor@example.com",time:t-72e5,event:"File Deleted",file_path:"/wp-content/uploads/old-document.pdf",type:"Document",ip:"192.168.1.101",message:"File deleted: old-document.pdf"},{id:"dummy-3",user:"admin",email:"admin@example.com",time:t-108e5,event:"Folder Created",file_path:"/wp-content/uploads/new-folder/",type:"Folder",ip:"192.168.1.100",message:"Folder created: new-folder"}]:i,d=function(e){if(!e)return"";var t=String(e),n=Number(t);if(!isNaN(n)&&""!==t.trim()){var o=t.length<=10?1e3*n:n;try{return new Date(o).toLocaleString()}catch(e){return t}}try{var i=new Date(t);if(!isNaN(i.getTime()))return i.toLocaleString()}catch(e){}return t};return 0!==s.length||a?s.map(function(e){return(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{style:{padding:"8px",borderBottom:"1px solid #f1f5f9"},children:String(e.id||"")}),(0,r.jsxs)("td",{style:{padding:"8px",borderBottom:"1px solid #f1f5f9"},children:[(0,r.jsx)("div",{children:e.user||"—"}),e.email&&(0,r.jsx)("div",{style:{color:"#64748b",fontSize:"12px"},children:e.email})]}),(0,r.jsx)("td",{style:{padding:"8px",borderBottom:"1px solid #f1f5f9"},children:d(e.time)}),(0,r.jsx)("td",{style:{padding:"8px",borderBottom:"1px solid #f1f5f9"},children:e.event||""}),(0,r.jsx)("td",{style:{padding:"8px",borderBottom:"1px solid #f1f5f9",maxWidth:"250px"},children:(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"8px"},title:e.file_path,children:e.file_path||""}),e.file_path&&(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsx)("button",{style:{background:"none",border:"none",cursor:"pointer",padding:"2px 4px",flexShrink:0},onClick:function(){var t=p(c().m(function t(n){return c().w(function(t){for(;;)switch(t.n){case 0:return n.preventDefault(),t.n=1,q(e.file_path||"");case 1:t.v&&(U(e.id),setTimeout(function(){return U(null)},2e3));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),title:"Copy file path",children:(0,r.jsx)("span",{className:G===e.id?"dashicons dashicons-yes":"dashicons dashicons-admin-page",style:{fontSize:"16px",lineHeight:"1",color:G===e.id?"#46b450":"inherit"}})}),G===e.id&&(0,r.jsx)("span",{style:{position:"absolute",bottom:"100%",right:"50%",transform:"translateX(50%)",background:"#333",color:"#fff",padding:"4px 8px",borderRadius:"4px",fontSize:"11px",whiteSpace:"nowrap",marginBottom:"5px",zIndex:10},children:"Copied!"})]})]})}),(0,r.jsx)("td",{style:{padding:"8px",borderBottom:"1px solid #f1f5f9"},children:e.type||""}),(0,r.jsx)("td",{style:{padding:"8px",borderBottom:"1px solid #f1f5f9"},children:e.ip||""}),(0,r.jsx)("td",{style:{padding:"8px",borderBottom:"1px solid #f1f5f9"},children:a?(0,r.jsx)("button",{onClick:function(t){t.preventDefault(),D(e)},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",color:"#2271b1"},title:"View",children:(0,r.jsx)("span",{className:"dashicons dashicons-visibility",style:{fontSize:"16px",lineHeight:"1"}})}):(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,r.jsx)("button",{onClick:function(t){t.preventDefault(),D(e)},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",color:"#2271b1"},title:"View",children:(0,r.jsx)("span",{className:"dashicons dashicons-visibility",style:{fontSize:"16px",lineHeight:"1"}})}),(0,r.jsx)("button",{onClick:function(t){if(t.preventDefault(),window.confirm("Are you sure you want to delete this log?")){var n=V(),o=n.root,i=n.nonce;I(function(t){return l(l({},t),{},{logs:(t.logs||[]).filter(function(t){return String(t.id)!==String(e.id)})})}),fetch("".concat(o,"file-manager-advanced/v1/activity-logs/").concat(String(e.id)),{method:"DELETE",credentials:"same-origin",headers:{"X-WP-Nonce":i}}).then(function(e){return e.json()}).then(function(){return fetch("".concat(o,"file-manager-advanced/v1/activity-logs"),{credentials:"same-origin",headers:{"X-WP-Nonce":i}})}).then(function(e){return e.ok?e.json():{logs:[]}}).then(function(e){I(function(t){return l(l({},t),{},{logs:Array.isArray(e.logs)?e.logs:[]})})})}},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",color:"#d63638",marginLeft:"4px"},title:"Delete",children:(0,r.jsx)("span",{className:"dashicons dashicons-trash",style:{fontSize:"16px",lineHeight:"1"}})})]})})]},e.id)}):(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:"8",style:{padding:"20px",color:"#666",textAlign:"center"},children:"No logs found."})})}()})]})}),(0,r.jsx)("div",{className:"afm-card-content",style:{display:"flex",justifyContent:"flex-end",marginTop:"12px"},children:(0,r.jsx)("a",{href:"#/logs",style:{background:"rgb(63, 105, 114)",color:"#fff",padding:"6px 12px",borderRadius:"6px",textDecoration:"none",fontWeight:500,fontSize:"14px"},children:"View All Logs"})}),!(null!==(u=window.afmReact)&&void 0!==u&&u.hasPro)&&(0,r.jsx)("div",{className:"afm-pro-overlay",style:{position:"absolute",inset:"0",background:"rgba(255,255,255,.75)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"0 0 12px 12px",zIndex:100},children:(0,r.jsxs)("a",{href:(null===(f=window.afmReact)||void 0===f?void 0:f.pricingUrl)||"https://advancedfilemanager.com/pricing/",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"8px",background:"#3F6972",color:"#fff",padding:"12px 24px",borderRadius:"8px",textDecoration:"none",fontWeight:600,fontSize:"15px",boxShadow:"0 4px 12px rgba(63,105,114,.3)"},children:[(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"#ffd700",style:{flexShrink:0},children:(0,r.jsx)("path",{d:"M3 16h18M5 7h2l1 3h2l1-3h2l1 3h2l1-3h2v9H3V7z"})}),"Get Advanced File Manager Pro"]})})]})]}),(0,r.jsxs)("div",{className:"afm-card afm-quick",style:{position:"relative"},children:[(0,r.jsx)("div",{className:"afm-card__header",children:"Integrations"}),(0,r.jsx)("div",{className:"afm-card__body",style:{position:"relative"},children:S?(0,r.jsx)("div",{className:"qa-grid afm-card-content",children:[1,2,3,4,5,6].map(function(e){return(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"66px",backgroundColor:"#e2e8f0",borderRadius:"8px"}},e)})}):function(e,t,n){var o=((null===(e=window.afmReact)||void 0===e?void 0:e.pluginUrl)||(null===(t=window.afm_object)||void 0===t?void 0:t.plugin_url)||"/wp-content/plugins/file-manager-advanced/")+"application/assets/images/",i=[{key:"github",name:"Github",img:o+"github.svg",href:"#/extension/github"},{key:"onedrive",name:"One Drive",img:o+"onedrive.svg",href:"#/extension/onedrive"},{key:"googledrive",name:"Google Drive",img:o+"googledrive.svg",href:"#/extension/google-drive"},{key:"googlecloud",name:"Google Cloud",img:o+"googlecloud.svg",href:"#/extension/google-cloud-storage"},{key:"dropbox",name:"Dropbox",img:o+"dropbox.svg",href:"#/extension/dropbox"},{key:"amazonses",name:"Amazon S3",img:o+"amazons3.svg",href:"#/extension/amazon-s3"},{key:"pcloud",name:"pCloud",img:o+"pcloud.svg",href:"#/extension/pcloud"},{key:"cloudflarer2",name:"Cloudflare R2",img:o+"cloudflarer2.svg",href:"#/extension/cloudflare-r2"},{key:"wasabi",name:"Wasabi",img:o+"wasabi.svg",href:"#/extension/wasabi"},{key:"ai",name:"AI Integration",img:o+"ai_integration.svg",href:"#/extension/ai-code-assistent"}];i.sort(function(e,t){var n=!(!z.integrations||!(z.integrations[e.key]||"cloudflarer2"===e.key&&z.integrations["cloudflare-r2"]));return n===!(!z.integrations||!(z.integrations[t.key]||"cloudflarer2"===t.key&&z.integrations["cloudflare-r2"]))?0:n?-1:1});var a=!x||x&&"business"!==h;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"qa-grid afm-card-content",style:{filter:a?"blur(1px)":"none",pointerEvents:a?"none":"auto"},children:i.map(function(e){var t=!(!z.integrations||!(z.integrations[e.key]||"cloudflarer2"===e.key&&z.integrations["cloudflare-r2"]));return(0,r.jsxs)("a",{className:"qa-card".concat(t?" connected":""),href:e.href,onClick:function(t){if(t.preventDefault(),a){var n,o=(null===(n=window.afmReact)||void 0===n?void 0:n.pricingUrl)||"https://advancedfilemanager.com/pricing/";if(void 0!==window.jQuery&&window.jQuery){var i=window.jQuery,r=i("<a>",{class:"on-click-show-popup","fma-href":o,style:"display: none;"}).appendTo("body");r.trigger("click"),setTimeout(function(){r.remove()},100),setTimeout(function(){var e=i("#fma__pro_popup");e.length&&!e.is(":visible")&&e.show()},200)}else window.open(o,"_blank")}else{var s;s="googledrive"===e.key?"google-drive":"googlecloud"===e.key?"google-cloud-storage":"amazonses"===e.key?"amazon-s3":"cloudflarer2"===e.key?"cloudflare-r2":"wasabi"===e.key?"wasabi":"ai"===e.key?"ai-code-assistent":e.key,sessionStorage.setItem("afm-extension-integration",s),sessionStorage.setItem("afm-extension-hash-just-set","true"),window.location.hash=e.href,setTimeout(function(){sessionStorage.removeItem("afm-extension-hash-just-set")},2e3)}},style:{cursor:"pointer"},children:[(0,r.jsx)("div",{className:"qa-icon",children:e.img&&(0,r.jsx)("img",{src:e.img,alt:e.name})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"qa-name",children:e.name}),(0,r.jsxs)("div",{className:"qa-status",children:[(0,r.jsx)("span",{className:"qa-dot ".concat(t?"green":"gray")}),t?"Connected":"Disconnected"]})]})]},e.key)})}),(0,r.jsx)("div",{className:"afm-card-content",style:{display:"flex",justifyContent:"flex-end",marginTop:"12px"},children:(0,r.jsx)("a",{href:"#/extension",onClick:function(e){e.preventDefault(),window.location.hash="#/extension"},style:{background:"rgb(63, 105, 114)",color:"#fff",padding:"6px 12px",borderRadius:"6px",textDecoration:"none",fontWeight:500,fontSize:"14px",cursor:"pointer"},children:"Manage Setting"})}),(!x||x&&"business"!==h)&&(0,r.jsx)("div",{className:"afm-pro-overlay",style:{position:"absolute",inset:"0",background:"rgba(255,255,255,.75)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"0 0 12px 12px",zIndex:100},children:(0,r.jsxs)("a",{href:(null===(n=window.afmReact)||void 0===n?void 0:n.pricingUrl)||"https://advancedfilemanager.com/pricing/",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"8px",background:"#3F6972",color:"#fff",padding:"12px 24px",borderRadius:"8px",textDecoration:"none",fontWeight:600,fontSize:"15px",boxShadow:"0 4px 12px rgba(63,105,114,.3)"},children:[(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"#ffd700",style:{flexShrink:0},children:(0,r.jsx)("path",{d:"M3 16h18M5 7h2l1 3h2l1-3h2l1 3h2l1-3h2v9H3V7z"})}),"Get Advanced File Manager Pro"]})})]})}()})]}),A&&(0,r.jsx)("div",{style:{position:"fixed",inset:"0",background:"rgba(0,0,0,.4)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},onClick:function(){return D(null)},children:(0,r.jsxs)("div",{style:{background:"#fff",borderRadius:"8px",minWidth:"400px",maxWidth:"600px",width:"90%",padding:"20px"},onClick:function(e){return e.stopPropagation()},children:[(0,r.jsx)("h3",{style:{marginTop:"0"},children:"Log Detail"}),(0,r.jsx)("div",{style:{padding:"12px",background:"#f8fafc",borderRadius:"6px",lineHeight:"1.6",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:A.message||""}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"15px"},children:(0,r.jsx)("button",{className:"button button-primary",onClick:function(){return D(null)},children:"Close"})})]})})]})}},8722(e,t,n){function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,s=[],l=!0,d=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){d=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function r(){var e,t;return function(e){if(!e||"string"!=typeof e)return e;try{var t=new URL(e,window.location.origin);return t.protocol=window.location.protocol,t.host=window.location.host,t.toString()}catch(t){return e.startsWith("/")?"".concat(window.location.origin).concat(e):e}}((null===(e=window.wpApiSettings)||void 0===e?void 0:e.root)||(null===(t=window.afmReact)||void 0===t?void 0:t.jsonURL)||"".concat(window.location.origin,"/?rest_route=/"))}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r(),i=n.endsWith("/")?n:"".concat(n,"/"),a=String(e||"").replace(/^\//,""),s=Object.entries(t).filter(function(e){var t=o(e,2)[1];return null!=t&&""!==t}).map(function(e){var t=o(e,2),n=t[0],i=t[1];return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(i)))});if(i.includes("rest_route=")){var l="".concat(i.split("rest_route=")[0],"rest_route="),d="".concat(l,"/").concat(a);return s.length&&(d+="&".concat(s.join("&"))),d}if(i.includes("/wp-json")){var c=function(e){try{return new URL(e,window.location.origin).origin}catch(e){return window.location.origin}}(i),u="".concat(c,"/?rest_route=/").concat(a);return s.length&&(u+="&".concat(s.join("&"))),u}var f="".concat(i).concat(a);return s.length&&(f+="?".concat(s.join("&"))),f}n.d(t,{_H:()=>a,lA:()=>r})},5464(e,t,n){n.d(t,{w:()=>i});var o={basic:{dropbox:!1,googledrive:!1,onedrive:!1,amazons3:!1,github:!1,googlecloud:!1,pcloud:!1,cloudflarer2:!1,wasabi:!1,digitalocean:!1,email_notification:!0,slack_notification:!1,filelogs:!0,adminer:!1,frontend_access:!0,public_access:!0,role_based_access:!0,individual_access:!0,private_folders:!1,hide_sensitive_files:!0,multilingual:!0,flexible_view:!0,flexible_root:!0,operations_control:!0,complete_operations:!0,advance_themes:!1,gutenberg_blocks:!0,code_editor_themes:!1,ai_integration:!1},professional:{dropbox:!0,googledrive:!0,onedrive:!0,amazons3:!0,github:!0,googlecloud:!0,pcloud:!0,cloudflarer2:!0,wasabi:!0,digitalocean:!1,email_notification:!0,slack_notification:!0,filelogs:!0,adminer:!1,frontend_access:!0,public_access:!0,role_based_access:!0,individual_access:!0,private_folders:!0,hide_sensitive_files:!0,multilingual:!0,flexible_view:!0,flexible_root:!0,operations_control:!0,complete_operations:!0,advance_themes:!0,gutenberg_blocks:!0,code_editor_themes:!0,ai_integration:!1},business:{dropbox:!0,googledrive:!0,onedrive:!0,amazons3:!0,github:!0,googlecloud:!0,pcloud:!0,cloudflarer2:!0,wasabi:!0,digitalocean:!1,email_notification:!0,slack_notification:!0,filelogs:!0,adminer:!0,frontend_access:!0,public_access:!0,role_based_access:!0,individual_access:!0,private_folders:!0,hide_sensitive_files:!0,multilingual:!0,flexible_view:!0,flexible_root:!0,operations_control:!0,complete_operations:!0,advance_themes:!0,gutenberg_blocks:!0,code_editor_themes:!0,ai_integration:!0}};function i(e,t,n){return!!n&&"free"!==t&&!!o[t]&&!0===o[t][e]}}}]);
//# sourceMappingURL=573.900ca190.chunk.js.map